﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VideoFileOrganization.MergeFolders
{
    public partial class MergeFolderFrm : Form
    {
        private string m_MergeFolderName;
        public MergeFolderFrm(string defaultName)
        {
            InitializeComponent();
            m_MergeFolderName = defaultName;
        }

        public string MergeFolderName
        {
            get { return m_MergeFolderName; }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            m_MergeFolderName = tbxMergeFolder.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void MergeFolderFrm_Load(object sender, EventArgs e)
        {
            tbxMergeFolder.Text = m_MergeFolderName;
        }
    }
}
